<?php 
/**
 * @version			$Id$
 * @author			Richard Asp
 * @package			Joomla
 * @subpackage		gnudoor
 * @copyright		(C) 2010 gnudoor LLC
 * @license      GNU/GPL, see LICENSE.php
 * Joomla! is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */

defined( '_JEXEC' ) or die( 'Restriced access' ); 
JHTML::_('stylesheet', 'myform.css','components/com_gnudoor/assets/css/');
JHTML::_('behavior.mootools');
$params = &JComponentHelper::getParams( 'com_gnudoor' );
$topalias = $params->get( 'Select Page Top' );
$bottomalias = $params->get( 'Select Page Bottom' );

$model =& $this->getModel('Appt');
$topID = $model->getArticleID($topalias);
$topid = $topID->id;
$bottomID = $model->getArticleID($bottomalias);
$bottomid = $bottomID->id;

//echo '<pre>';
//print_r($topID);
//echo '</pre>';
//exit;

?>
<?php echo file_get_contents($this->articlebase . $topid);?>

<div id="newtask" class="myform" >

<form id="form1" name="form1" method="post" action="">
	<fieldset>
		<legend><span>&nbsp;</span></legend>
		<ol>


	<div>
		<div style="float: left; width: 50%;"><div align="center"><strong>Description</strong></div>
		</div>
		<div style="float: left; width: 10%;">
		  <div align="right"><strong>Qty</strong></div>
		</div>
		<div style="float: left; width: 15%;"><div align="right"><strong>Price</strong></div>
		</div>
		<div style="float: left; width: 15%;">
		  <div align="right"><strong>Total</strong></div>
		</div>
  </div>
	<div style="clear: both;">
		<div style="float: left; width: 50%;">Item 1</div>
		<div style="float: left; width: 10%;">
		  <div align="right">
		    
		      <input class="text" name="textfield" type="text" size="5" />
	        
		  </div>
		</div>
		<div style="float: left; width: 15%;"><div align="right">100.00</div></div>
		<div style="float: left; width: 15%;">
		  <div align="right">200.00</div>
		</div>
  </div>
	<div style="clear: both;">
		<div style="float: left; width: 50%;">Item 2 </div>
		<div style="float: left; width: 10%;"><div align="right">
		  <input name="textfield2" type="text" size="5" />
		</div></div>
		<div style="float: left; width: 15%;"><div align="right">100.00</div></div>
		<div style="float: left; width: 15%;"><div align="right">100.00</div></div>
  </div>
	<div style="clear: both;">
		<div style="float: left; width: 50%;">Item 3 </div>
		<div style="float: left; width: 10%;">
		  <div align="right">
		    <input name="textfield3" type="text" size="5" />
		  </div>
		</div>
		<div style="float: left; width: 15%;"><div align="right">100.00</div></div>
		<div style="float: left; width: 15%;">
		  <div align="right">300.00</div>
		</div>
  </div>

    <input type="hidden" name="option" value="com_gnudoor" />
    <input type="hidden" name="controller" value="appt" />
    <input type="hidden" name="task" value="default" />
</ol>
</fieldset>
<fieldset class="submit">
<input class="submit" type="submit" value="Next =>" />

</fieldset>
    
</form>

</div>

<?php echo file_get_contents($this->articlebase . $bottomid);?>

